package com.skyworth.skymanualActivity;




import com.skyworth.skymanual.R;

import android.R.id;
import android.app.Activity;
import android.content.Intent;
import android.content.res.AssetManager;
import android.graphics.Typeface;
import android.os.Bundle;
import android.os.Handler;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;

public class SplashScreenActivity extends Activity {
     TextView textViewSplast;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		
		
		requestWindowFeature(Window.FEATURE_NO_TITLE); 
		getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
				WindowManager.LayoutParams.FLAG_FULLSCREEN); 
		
		setContentView(R.layout.splashscreen);
		
		
		//contentView.setBackgroundResource(R.drawable.newhome);
		
		
		
		textViewSplast=(TextView)findViewById(R.id.TextSplastScreen);
		//得到AssetManager
		   AssetManager AssetManagermgr=getAssets();
		//根据路径得到Typeface
		Typeface Typefacetf=Typeface.createFromAsset(AssetManagermgr, "fonts/liuxingti.ttf");
		//设置字体
		textViewSplast.setTypeface(Typefacetf);
		
		new Handler().postDelayed(new Runnable() {
			
			@Override
			public void run() {
				// TODO Auto-generated method stub
				Intent mainIntent =new Intent(SplashScreenActivity.this,GuideListActivity.class);
				SplashScreenActivity.this.startActivity(mainIntent);
				SplashScreenActivity.this.finish();
				
			}
		}, 2500);
	}

}
